//
//  SetCell.m
//  AirQuality
//
//  Created by Po on 15/9/11.
//  Copyright © 2015年 Po. All rights reserved.
//

#import "SetCell.h"
@interface SetCell ()

@end

@implementation SetCell

- (void)awakeFromNib {
    [_switchButton addTarget:self action:@selector(pressSwitchButton:) forControlEvents:UIControlEventValueChanged];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)pressSwitchButton:(UISwitch *)sender
{
    if (_delegate && [_delegate respondsToSelector:@selector(SetCell:didSelectSwitchButton:)]) {
        [_delegate SetCell:self didSelectSwitchButton:sender];
    }
}

@end
